import sys
import random


item_time = int(sys.argv[1])

result = {}

result["in"] = 0
result["all"] = 0

# for line in sys.stdin:
#     pass

for i in range(0, item_time):
    ran_num1 = random.uniform(0.0,100.0)
    ran_num2 = random.uniform(0.0,100.0)
    if (pow(ran_num1, 2) + pow(ran_num2, 2)) < 10000:
        result["in"] = result["in"] + 1
    result["all"] = result["all"] + 1


for key, value in result.items():
	sys.stdout.write("%s\t%s\n" % (key, str(value)))